<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace addons\equip\model;

/**
 * Description of Equip
 * 装备
 * @author zmh
 */
class Equip extends \web\common\model\BaseModel {

    protected function _initialize() {
        $this->tableName = 'equip_list';
    }

    /**
     * 关联分类表列表
     * @param int $pageIndex
     * @param int $pageSize
     * @param string $filter
     * @param string $order
     * @return mixed
     */
    public function getList($pageIndex = -1, $pageSize = -1, $filter = '', $order = 'order_index asc') {
        $sql = 'select * from ' . $this->getTableName() ;
        if (!empty($filter))
            $sql .= ' where ' . $filter;
        return $this->getDataListBySQL($sql, $pageIndex, $pageSize, $order);
    }
    
    

}
